<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>人才培训</title>
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="minimal-ui=yes,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="msapplication-tap-highlight" content="no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">

	<link rel="stylesheet" type="text/css" href="css/mui.min.css" />
	<link rel="stylesheet" type="text/css" href="css/public.css">
	<link rel="stylesheet" type="text/css" href="css/recruitment.css">
	
</head>
<body>
	<div class="header">
		<div class="top">
			<div class="sn-nav-title of">企业招聘信息列表</div>
		</div>
	</div>
	<div class="container">
		<div class="zp">
		
		</div>
	</div>
</body>

<script type="text/javascript" src="js/jquery.min.js" ></script>
<script type="text/javascript" src="js/base.js" ></script>

<script type="text/javascript" charset="utf-8">
(function(){
	$.ajax({
		type: "POST",
		url: "/job/search",
		data:{
			"pageSize":9999
		},
		dataType:"json",
		async:false,
		success: function(data){
			if(data.code == 0){
				var arrayList=data.data;
				console.log(arrayList.length);
				var html="";
				for(var i=0;i<arrayList.length;i++){
					html+="<div class='list'>"+
							"<a href='recruitment_details.html#"+arrayList[i].id+"'>"+
								"<div class='top clearfix'>"+
									"<div class='position fl'>"+
										arrayList[i].title+
									"</div>"+
									"<div class='salary fr'>"+
										arrayList[i].salary+
									"</div>"+
								"</div>"+
								"<div class='description clearfix'>"+
									"<div class='left fl'>"+
										"<p class='first'>"+arrayList[i].address+"</p>"+
										"<p class=''>"+arrayList[i].exp+"</p>"+
										"<p class='last'>"+arrayList[i].diploma+"</p>"+
									"</div>"+
									"<div class='right fr'>"+
										"<p>"+formatDate(arrayList[i].createTime)+"</p>"+
									"</div>"+
								"</div>"+
								"<div class='company clearfix'>"+
									"<div class='fl'>"+
										"<h3>"+arrayList[i].name+"</h3>"+
									"</div>"+
								"</div>"+
							"</a>"+
						"</div>";							
				}
				$(".zp").html(html);
			}else{
				alert(data.msg);
				return false;
			}
		}
	});
}()); 

function formatDate(now_l) {
	var now = new Date(now_l);
	var year=now.getYear().toString();     
	var month=now.getMonth()+1;     
	var date=now.getDate();     
	var hour=now.getHours();     
	var minute=now.getMinutes();     
	var second=now.getSeconds();     
	if(month<10)
	{
		month='0'+month;
	}
	if(date<10)
	{
	 date='0'+date;
	}
	return month+"月"+date+"日";
}
</script>


</html>